-- CALC_AIRSHIP_INSTANLLATION_BONUS

-- 计算飞艇装置奖励
return function(user, bonusArg)
    local rand = DungeonM.getRandSeed("CALC_AIRSHIP_INSTANLLATION_BONUS") % 100;
    local arr = {};
    local count = 1;

    if rand < 50 then
        arr = { 10400, 10401, 10402, 10403 };
        count = 1;
    elseif rand < 80 then
        arr = { 10400, 10401, 10402, 10403 };
        count = 2;
    else
        arr = { 10404, 10405, 10406, 10407 };
        count = 1;
    end

    local index = DungeonM.getRandSeed("CALC_AIRSHIP_INSTANLLATION_BONUS") % #arr;
    return { { 1, arr[index + 1], count }, };
end